package com._520it.crm.service.impl;

import com._520it.crm.domain.CarModel;
import com._520it.crm.domain.ClientCar;
import com._520it.crm.mapper.ClientCarMapper;
import com._520it.crm.service.IClientCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ClientCarServiceImpl implements IClientCarService {
    @Autowired
    private ClientCarMapper clientCarMapper;
    @Override
    public int insert(ClientCar record) {
        clientCarMapper.insert(record);
        return 0;
    }

    @Override
    public ClientCar selectByPrimaryKey(Integer id) {
        return clientCarMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ClientCar> selectAll() {
        return clientCarMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(ClientCar record) {
        return clientCarMapper.updateByPrimaryKey(record);
    }

    @Override
    public Map<String,Object> selectByOrderBillId(Long orderBillId) {

        return clientCarMapper.selectByOrderBillId(orderBillId);
    }

    @Override
    public void updateById(ClientCar clientCar) {
        clientCarMapper.updateById(clientCar);
    }

}
